﻿//Mr Inventory by David Mauler 10.2.2010
//Mr Inventory is released under the 
//GNU General Public License version 2 (GPLv2)

using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Collections;

public partial class gencsv : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        ServerSql genCsv = new ServerSql();
        genCsv.genSprdSheet();
        //lbMessage.Text = genCsv.genSprdSheet();

        HttpContext context = HttpContext.Current;
        context.Response.Write(genCsv.genSprdSheet());
        context.Response.ContentType = "text/csv";
        context.Response.AppendHeader("content-disposition", "attachment; filename=servers.csv");
        context.Response.End();
    }
}
